﻿namespace FlashcardPdfCreator
{
	using iTextSharp.text.pdf;
	using iTextSharp.text;

	public class FlashcardFonts
	{
		public FlashcardFonts(string baseFontFullPath)
		{
			BaseFont baseFont = iTextSharp.text.pdf.BaseFont.CreateFont(baseFontFullPath, BaseFont.IDENTITY_H, iTextSharp.text.pdf.BaseFont.EMBEDDED);
			this.Word = new Font(baseFont, 12, Font.BOLD, new BaseColor(0, 0, 0));
			this.Pronunciation = new Font(baseFont, 10, Font.ITALIC, new BaseColor(0, 0, 0));
			this.Example = new Font(baseFont, 9, Font.NORMAL, new BaseColor(0, 0, 0));
		}

		public Font Example { get; private set; }
		public Font Pronunciation { get; private set; }
		public Font Word { get; private set; }
	}
}
